import pyautogui

# 获取屏幕尺寸
screen_width, screen_height = pyautogui.size()
print(screen_width, screen_height)

# 设置起始位置和终止位置
start_x, start_y = screen_width // 2, screen_height // 2
end_x, end_y = start_x, start_y - 200

# 模拟滑动操作
pyautogui.moveTo(start_x, start_y)
pyautogui.mouseDown()
pyautogui.moveTo(end_x, end_y, duration=1)
pyautogui.mouseUp()